package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description: todo
 *
 * @author sun jun
 * @className CommReuslt
 * @date 2020/3/18 14:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommomResult<T> {

    private Integer code;
    private String message;
    private T data;

   public CommomResult(Integer code,String message){
       this(code,message,null);
   }


}
